Skip to content

Without gcp - #401

Draft
chimosky wants to merge 5 commits into
roostorg:mainfrom
chimosky:without-gcp
Draft

Without gcp#401
chimosky wants to merge 5 commits into
roostorg:mainfrom
chimosky:without-gcp

Conversation

@chimosky

@chimosky chimosky commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

Make Osprey runnable without GCP credentials.

I've created an alternative to PubSubPublisher using Kafka, so there's a fallback when Osprey isn't running on GCP.
Kafka because Osprey uses it.

@julietshen this is a WIP, I've covered Tier1. Is this the direction you're thinking of heading in?

Checklist

  • Tests pass locally
  • uv run ruff check . passes (no unused imports or other lint errors)
  • uv tool run fawltydeps --check-unused --pyenv .venv passes (no unused dependencies)
  • Updated CHANGELOG.md with my changes, if notable (refer to Keep a Changelog conventions)

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b4efb0d5-014f-4da4-8ee5-7303ea9216c1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@julietshen

Copy link
Copy Markdown
Member

Ooooh yes! I like this approach. @haileyok might have thoughts too

@chimosky

chimosky commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Ooooh yes! I like this approach. @haileyok might have thoughts too

Alright, I'll push more changes to cover the other tiers.

@chimosky

Copy link
Copy Markdown
Contributor Author

Once #388 lands, I'll modify the gcp checks here to use gcp_credentials_available.

chimosky added 4 commits July 10, 2026 17:49
I've created a KafkaPublisher that's used in place of
PubSubPublisher when osprey isn't being run on GCP.

The published data doesn't have a subscriber/consumer yet,
it's just published, the rules visualizer now shows nodes
like it should.

I need to better handle when an exception is raised in
KafkaPublisher.publish.

Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
This should complete Tier1 of issue roostorg#343

Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
This makes it easier for any future subclasses of
BasePublisher to work as a return value, so there's no need
to explicitly state the return types like I did.

Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
It doesn't require GCS to upload the files to process for
the actions as there's a LocalBulkActionFileManager that it
defaults to for dev environments.

Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants